<?php
/**
 * Created by PhpStorm.
 * User: hongyeah
 * Date: 2015/11/22
 * Time: 17:28
 */

namespace Admin\Controller;


use Think\Controller;

class RecordController extends Controller
{
    public function recordList(){
        $this->display();
    }

    public function getRecordList(){
        $search = I('search/s');
        $record_model = D('Record');

        try{
            $data = $record_model->getRecordList($search);
        }catch (Exception $e){
            $this->ajaxReturn(array('state'=>'0','show'=>0));
        }

        $data->state = 1;

        $this->ajaxReturn($data);
    }
}